﻿using Common;
using Device;
using System;
using System.Diagnostics;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;

namespace CarPCBATest.Procedure
{
    /// <summary>
    /// IO模块
    /// </summary>
    public enum DIDefine
    {
        /// <summary>
        /// 安全光幕
        /// </summary>
        SafeLight = 0,

        /// <summary>
        /// 启动
        /// </summary>
        Start,

        /// <summary>
        /// 急停
        /// </summary>
        EmgStop,

        /// <summary>
        /// 气缸原点
        /// </summary>
        AirBase,

        /// <summary>
        /// 气缸到位
        /// </summary>
        AirWork,

        ///// <summary>
        ///// 安全光幕
        ///// </summary>
        //SafeLight = 0,

        ///// <summary>
        ///// 启动
        ///// </summary>
        //Start,

        ///// <summary>
        ///// 急停
        ///// </summary>
        //EmgStop,

        ///// <summary>
        ///// 复位(空缺)
        ///// </summary>
        //Reset,

        ///// <summary>
        ///// 气缸到位
        ///// </summary>
        //AirWork
    }

    public enum DODefine
    {
        /// <summary>
        /// 气缸动作
        /// </summary>
        AirReset = 0,

        /// <summary>
        /// 红灯
        /// </summary>
        RedLight,

        /// <summary>
        /// 黄灯
        /// </summary>
        YellowLight,

        /// <summary>
        /// 绿灯
        /// </summary>
        GreenLight,

        /// <summary>
        /// 程控电源1路
        /// </summary>
        Power1,

        /// <summary>
        /// 程控电源2路
        /// </summary>
        Power2,

        /// <summary>
        /// 程控电源3路
        /// </summary>
        Power3,

        /// <summary>
        /// 烧录供电8V
        /// </summary>
        InProgram,

        /// <summary>
        /// 烧录开关
        /// </summary>
        BurnIO,

        /// <summary>
        /// CAN通信控制
        /// </summary>
        CanfdCom

        ///// <summary>
        ///// 产品供电
        ///// </summary>
        //Power = 0,

        ///// <summary>
        ///// 测试通过指示
        ///// </summary>
        //OK =1,

        ///// <summary>
        ///// NG蜂鸣器
        ///// </summary>
        //NG =2,

        ///// <summary>
        ///// 气缸复位
        ///// </summary>
        //AirReset=3,

        ///// <summary>
        ///// 高电平烧录低电平测试
        ///// </summary>
        //LineSwitch=4
    }
}